package com.etown.lucene;

import java.util.Calendar;
import java.util.Date;

/**
 * 时间规划类
 * @author AFI
 * 
 */
public class TimeStep {

	private Calendar calendar = Calendar.getInstance();
	
	@SuppressWarnings("static-access")
	private int filed = calendar.SECOND;
	private int amount = 10;

	public int getFiled() {
		return filed;
	}

	public void setFiled(int filed) {
		this.filed = filed;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}
	
	public Date next() {
		calendar.add(filed, amount);//??
		return calendar.getTime();
	}

}
